package com.gqh.weather.domain.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
public class ExamRequest {
    @JsonProperty("paper_name")
    @NotBlank
    private String paperName;

    @JsonProperty("exam_id")
    @NotNull
    private Integer examId;

    @JsonProperty("student_no")
    @NotBlank
    private String studentNo;

    @JsonProperty("answers")
    @Valid
    private List<StudentUploadAnswerData> answers;
}
